home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / plugin.jar / sun / plugin / BeansApplet.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  754 b   |  50 lines

  1. package sun.plugin;
  2.  
  3. import java.applet.Applet;
  4. import java.awt.BorderLayout;
  5. import java.awt.Component;
  6.  
  7. public class BeansApplet extends Applet {
  8.    Object bean;
  9.    // $FF: renamed from: c java.awt.Component
  10.    Component field_0;
  11.  
  12.    BeansApplet(Object var1) {
  13.       this.bean = var1;
  14.       if (this.bean instanceof Component) {
  15.          this.field_0 = (Component)var1;
  16.       }
  17.  
  18.    }
  19.  
  20.    public void init() {
  21.       if (this.field_0 != null) {
  22.          this.setLayout(new BorderLayout());
  23.       }
  24.  
  25.    }
  26.  
  27.    public void start() {
  28.       if (this.field_0 != null) {
  29.          this.add(this.field_0);
  30.       }
  31.  
  32.    }
  33.  
  34.    public void stop() {
  35.       if (this.field_0 != null) {
  36.          this.remove(this.field_0);
  37.       }
  38.  
  39.    }
  40.  
  41.    public void destroy() {
  42.       this.field_0 = null;
  43.       this.bean = null;
  44.    }
  45.  
  46.    public Object getBean() {
  47.       return this.bean;
  48.    }
  49. }
  50.